Visual Studio 2015 2017 2019 CLR Windows Form 6步驟設定及空專案下載 download

目前可以這方法可以用於Visual Stuido 2015、2017,但在2019會在第三部找不到UI,可以用Visual Stuido 2015、2017設定好再2019開啟

最下方有空專案可以下載

1.這裡使用Visual Stuido2017開啟新專案



2.開啟CLR空白專案


3.在專案→加入新項目→選UI→加入Windows Form元件


4.屬性→連結器→系統→子系統選 Windows (/SUBSYSTEM:WINDOWS)
5.屬性→連結器→系統→進階→進入點 寫main


6.在MyForm.cpp貼上程式碼
#include "MyForm.h"
using namespace System;
using namespace System::Windows::Forms;
[STAThread]
void main(array^ args)
{
	Application::EnableVisualStyles();
	Application::SetCompatibleTextRenderingDefault(false);
	Example::MyForm myForm;
	Application::Run(%myForm);
}

完成了😊😊😊




留言

這個網誌中的熱門文章

🛠【ASP.NET Core + Oracle】解決 ORA-00904 "FALSE": 無效的 ID 錯誤與資料欄位動態插入顯示問題

🛠【實戰排除教學】從 VS Code 的 _logger 錯誤,到 PowerShell 找不到 npm/serve,再到 Oracle ORA-03135 連線中斷——一次搞懂!

🔎如何在 Oracle PL/SQL 儲存過程中為文字欄位加入換行符號(CHR(10))——以 Updlcmremark 為例